<!DOCTYPE html>
<html><head>
	    <meta charset="utf-8">
    <title>修改管理员</title>

    <meta name="description" content="Dashboard">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <link rel="shortcut icon" href="__PUBLIC__/Admin/images/favicon1.ico">
    <!--Basic Styles-->
    <link href="__PUBLIC__/Admin/style/bootstrap.css" rel="stylesheet">
    <link href="__PUBLIC__/Admin/style/font-awesome.css" rel="stylesheet">
    <link href="__PUBLIC__/Admin/style/weather-icons.css" rel="stylesheet">

    <!--Beyond styles-->
    <link id="beyond-link" href="__PUBLIC__/Admin/style/beyond.css" rel="stylesheet" type="text/css">
    <link href="__PUBLIC__/Admin/style/demo.css" rel="stylesheet">
    <link href="__PUBLIC__/Admin/style/typicons.css" rel="stylesheet">
    <link href="__PUBLIC__/Admin/style/animate.css" rel="stylesheet">
    
</head>
<body>
	<!-- 头部 -->
	<div class="navbar">
    <div class="navbar-inner">
        <div class="navbar-container">
            <!-- Navbar Barnd -->
            <div class="navbar-header pull-left">
                <a href="#" class="navbar-brand">
                    <small>
                            <img src="__PUBLIC__/Admin/images/logo.png" alt="">
                        </small>
                </a>
            </div>
            <!-- /Navbar Barnd -->
            <!-- Sidebar Collapse -->
            <div class="sidebar-collapse" id="sidebar-collapse">
                <i class="collapse-icon fa fa-bars"></i>
            </div>
            <!-- /Sidebar Collapse -->
            <!-- Account Area and Settings -->
            <div class="navbar-header pull-right">
                <div class="navbar-account">
                    <ul class="account-area">
                        <li>
                            <a class="login-area dropdown-toggle" data-toggle="dropdown">
                                <div class="avatar" title="View your public profile">
                                    <img src="__PUBLIC__/Admin/images/adam-jansen.jpg">
                                </div>
                                <section>
                                    <h2><span class="profile"><span>admin</span></span></h2>
                                </section>
                            </a>
                            <!--Login Area Dropdown-->
                            <ul class="pull-right dropdown-menu dropdown-arrow dropdown-login-area">
                                <li class="username"><a>David Stevenson</a></li>
                                <li class="dropdown-footer">
                                    <a href="__MODULE__/Public/logout">
                                            退出登录
                                        </a>
                                </li>
                                <li class="dropdown-footer">
                                    <a href="__MODULE__/Manager/change">
                                            修改密码
                                        </a>
                                </li>
                            </ul>
                            <!--/Login Area Dropdown-->
                        </li>
                        <!-- /Account Area -->
                        <!--Note: notice that setting div must start right after account area list.
                            no space must be between these elements-->
                        <!-- Settings -->
                    </ul>
                </div>
            </div>
            <!-- /Account Area and Settings -->
        </div>
    </div>
</div>

	<!-- /头部 -->
	
	<div class="main-container container-fluid">
		<div class="page-container">
			            <!-- Page Sidebar -->
           <include file="Common/sidebar"/>
            <!-- /Page Sidebar -->
            <!-- Page Content -->
            <div class="page-content">
                <!-- Page Breadcrumb -->
                <div class="page-breadcrumbs">
                    <ul class="breadcrumb">
                        <!--<li>-->
                           <!--<a href="#">系统</a>-->
                        <!--</li>-->
                        <li>
                           <a href="__MODULE__/Manager/managerList">管理员</a>
                        </li>
                        <li class="active">修改管理员</li>

                    </ul>
                </div>
                <!-- /Page Breadcrumb -->

                <!-- Page Body -->
                <div class="page-body">
                    
<div class="row">
    <div class="col-lg-12 col-sm-12 col-xs-12">
        <div class="widget">
            <div class="widget-header bordered-bottom bordered-blue">
                <span class="widget-caption">修改管理员</span>
            </div>
            <div class="widget-body">
                <div id="horizontal-form">
                    <form class="form-horizontal" role="form" action="__MODULE__/Manager/managerModify" method="post">
                        <input type="hidden" name="id" value="{$manager.id}">
                        <div class="form-group">
                            <label for="account" class="col-sm-2 control-label no-padding-right">账号</label>
                            <div class="col-sm-6">
                                <input class="form-control" id="account" placeholder="" name="account"  type="text" value="{$manager.account}">
                            </div>
                            <p class="help-block col-sm-4 red">* 必填</p>
                        </div>
                        <div class="form-group">
                            <label for="password" class="col-sm-2 control-label no-padding-right">密码</label>
                            <div class="col-sm-6">
                                <input class="form-control" id="password" placeholder="密码为空,则默认不修改密码" name="password"  type="password">
                            </div>
                            <!--<p class="help-block col-sm-4 red">* 必填</p>-->
                        </div>
                        <div class="form-group">
                            <label  class="col-sm-2 control-label no-padding-right">
                                账号激活
                            </label>
                            <div class="col-xs-4">
                                <label class="radio-online">
                                    <input type="radio" name="status"  value="1" style="opacity: 1; position:relative; left:0"  <if condition=" $manager['status'] eq 1 ">checked</if>     /> 是
                                </label>
                                <label class="radio-online">
                                    <input type="radio" name="status"  value="0" style="opacity: 1; position:relative; left:0" <if condition=" $manager['status'] eq 0 ">checked</if> /> 否
                                </label>
                            </div>
                        </div>

                        <!--<div class="form-group">-->
                            <!--<label for="group_id" class="col-sm-2 control-label no-padding-right">-->
                                <!--用户角色-->
                            <!--</label>-->
                            <!--<div class="col-sm-6">-->
                                <!--<select name="group_id" style="width: 100%;">-->
                                    <!--<option selected="selected" value="8">-->
                                        <!--测试-->
                                    <!--</option>-->
                                <!--</select>-->
                            <!--</div>-->
                        <!--</div>  -->
                        <div class="form-group">
                            <div class="col-sm-offset-2 col-sm-10">
                                <button type="submit" class="btn btn-default">
                                    保存信息
                                </button>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>

                </div>
                <!-- /Page Body -->
            </div>
            <!-- /Page Content -->
		</div>	
	</div>

    <!--Basic Scripts-->
    <script src="__PUBLIC__/Admin/style/jquery_002.js"></script>
    <script src="__PUBLIC__/Admin/style/bootstrap.js"></script>
    <script src="__PUBLIC__/Admin/style/jquery.js"></script>
    <!--Beyond Scripts-->
    <script src="__PUBLIC__/Admin/style/beyond.js"></script>
    <!--引入layer.js-->
    <script src="__PUBLIC__/Admin/layer/layer.js"></script>

</body>
</html>
<script>
    $(document).ready(function () {
        $('form').submit(function (event) {
            var id =$('input[name=id]').val();
            var account = $('input[name=account]').val();
            var password = $('input[name=password]').val();
            var status = $("input[type='radio']:checked").val();
            $.post('__MODULE__/Manager/managerModify', {id : id, account : account, password : password, status : status}, function (result) {
                if (result != 'true') {
                    layer.msg(result);
                } else {
                    window.location.href = '__MODULE__/Manager/managerList';
                }
            });
            event.preventDefault();
        });
    });
</script>